package com.taotao.manage.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 页面跳转控制器
 * @author Henry
 *
 */
@RequestMapping("page")
@Controller
public class PageController {

	
	
	
	/**
	 * 通用页面跳转
	 * 使用占位符传参
	 */
	@RequestMapping("{viewname}")
	public ModelAndView page(@PathVariable("viewname") String pageName){
		return new ModelAndView(pageName);
	}
	
	
	
	
	
	
	
	
}
